<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
// import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
  <header>
    <div class="wrapper">
      <nav>
        <RouterLink to="/">Home</RouterLink>
        <RouterLink to="/about">About</RouterLink>
      </nav>
    </div>
  </header>
  <div id="content">
    <RouterView /> 
  </div>

</template>
<style>
*{
  padding: 0;
  margin: 0;
}
#content{
  padding-top: 50px;
}
</style>
<style scoped lang='scss'>

header {
  width: 100%;
  height: 50px;
  top: 0;
  background: rgba($color: DarkSlateGray, $alpha: 0.3);
  color: white;
  position: fixed;
}
nav {
  display: flex;
  // justify-content: space-between;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  a{
    // height: 50px;
    line-height: 50px;
    margin-right: 10px;
  }
  
  a:visited{
    color :#ffffff
  }
}
</style>
